package com.bootdo.coach.service;

import java.util.List;
import java.util.Map;
import java.util.Set;

import com.bootdo.coach.domain.TabAgent;
import com.bootdo.coach.vo.TabAgentVo;


public interface TabAgentService {
	
    int deleteByPrimaryKey(Long agentId);

    int insert(TabAgent record);

    int insertSelective(TabAgent record);

    TabAgent selectByPrimaryKey(Long agentId);

    int updateByPrimaryKeySelective(TabAgent record);

    int updateByPrimaryKey(TabAgent record);

	TabAgent findAgent(String bg_account, String bg_password);

	List<TabAgentVo> list(Map<String, Object> query);

	int count(Map<String, Object> query);

	boolean exitAgentName(Map<String, Object> params);

	boolean exitBgAccount(Map<String, Object> params);

	void updateAgentLevelAndHigherAgentId(Long agentId, Long higherAgentId);

	boolean exitAgentByAgentId(Long agentId);

	void updateAgentHigherAgentId(Long agentId, Long changeAgentId);

	void updatePwd(String bg_account, String bg_password);

	Set<Long> findAgentIdList(Set<Long> agentIdList);
}
